package com.houtai.bean.vo.activity.apply;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
@ApiModel(value="活动报名所需参数", description="活动报名所需参数")
public class TdActivityApplyInsertDto {
    @NotNull(message = "活动id不能为为空")
    @ApiModelProperty(value="活动id", name="activity_id")
    private int activity_id;

    @NotEmpty(message = "请输入正确手机号码")
    @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]\\d{8}$", message = "请输入正确手机号码")
    @ApiModelProperty(value="手机号码", name="phone_no")
    private String phone_no;
    @NotEmpty(message = "请输入姓名")
    @Length(max = 20, message = "姓名最多20个字符")
    @ApiModelProperty(value="姓名", name="apply_name")
    private String apply_name;

    public int getActivity_id() {
        return activity_id;
    }

    public void setActivity_id(int activity_id) {
        this.activity_id = activity_id;
    }

    public String getPhone_no() {
        return phone_no;
    }

    public void setPhone_no(String phone_no) {
        this.phone_no = phone_no;
    }

    public String getApply_name() {
        return apply_name;
    }

    public void setApply_name(String apply_name) {
        this.apply_name = apply_name;
    }
}
